ImageGear Professional DLL v18.1 for Windows
Creating a Mark via Function Calls
Send Feedback
ImageGear Professional v18.1 > User Guide > Using ImageGear > Annotating Images > New Annotation API: ArtX > Working with ART Marks > Creating a Mark via Function Calls

Glossary Item Box

Some applications won't use the ART Toolbar, or will provide the Toolbar and other options for creating marks. In that case, a function in your application will need to create the marks directly. ART marks are created by using their objects. For example, a rectangle can be created as follows:

  Copy Code
IG_ARTX_rectangle_create(pRectangle, pFillColor, pBorder, nOpacity, &hRectMark);

Once it is created, it should be added to the ART page:

  Copy Code
IG_ARTX_page_mark_add(hArtPage, hRectMark, nCoordType, &hRectMark);

Mark properties can be edited at any time:

  Copy Code
IG_ARTX_rectangle_opacity_set(_hRectMark, 128);
©2014. Accusoft Corporation. All Rights Reserved.